import * as types from '../../actions/root/ActionTypes';
import {combineReducers} from 'redux'

const initialState = {
  hidden: false
};

function tabbarHidden(state = initialState.hidden, action = {}) {
  switch (action.type) {
    case types.HIDETAB:
    case types.SHOWTAB:
      return action.hidden;
    default:
      return state;
  }
}

const root = combineReducers({
  tabbarHidden
})

export default root;
